package com.hjf.service;

import java.util.List;
import java.util.Map;

import com.commons.po.DeptPo;
import com.commons.po.PageBean;

public interface DeptPoService {
	/**返回所有部门对象的集合*/
	public List<DeptPo> findByCondition();
	/**返回某个部门对象的集合*/
	public List<DeptPo> findById(Integer id);
	/**返回父部门相同的部门对象的集合*/
	public List<DeptPo> findByDeptParent(Integer deptParent);
	/**添加新部门*/
	public int saveDeptPo(DeptPo entity);
	/**修改某个部门*/
	public int updateDeptPo(DeptPo entity);
	/**以部门分页形式返回PageBean对象*/
	public PageBean<DeptPo> findPageByCondition(int pageIndex, int pageSize, Map<String, Object> map);
}
